Error configuring virtual hosts with Apache on Windows 8 [on hold]

Posted by rushd on Server Fault See other posts from Server Fault or by rushd
Published on 2014-05-31T00:51:34Z Indexed on 2014/05/31 3:29 UTC
Read the original article Hit count: 148

Filed under:
|
|

I can't get virtual host to work on my Windows 8. I restart, stop, start Apache, but I get a popup dialog that says: The requested operation has failed! I know it's the line that produces the error, but how can I enable vhost if I don't uncomment the line in httpd.conf?

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

The only thing I did was edited C:\Apache24\conf\httpd.conf by removing the comment on Include conf/extra/httpd-vhosts.conf and edited the file located in C:\Apache24\conf\extra\httpd-vhost.conf.

  • Apache is installed in C:\Apache24
  • Directory I want to use for Virtual Host is located at C:\Users\TomCODE\brainprojects

My vhost.conf looks like this:

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName brain.local
DocumentRoot "C:/Users/TomCODE/brainprojects"
ErrorLog "logs/brain.local-error.log"
CustomLog "logs/local.local-access.log" common
</VirtualHost>

My hosts file:

127.0.0.1    brain.local

I downloaded the file httpd-2.4.9-win64-VC11 from Apache Lounge.

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about Windows